home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 4 / CDPD_IV.bin / e / mailinglists / amigae.0294feb.archive / 000020_donews!crash!ic….com!THORNTONJ_Tue, 8 Feb 94 01:41:18 PST.msg < prev    next >
Internet Message Format  |  1994-05-26  |  2KB

  1. Received: by bkhouse.cts.com (V1.17-beta/Amiga)
  2.       id <1qyk@bkhouse.cts.com>; Tue, 8 Feb 94 01:41:18 PST
  3. Received: from crash by donews.cts.com with uucp
  4.     (Smail3.1.28.1 #18) id m0pTeCU-0001OgC; Mon, 7 Feb 94 14:13 PST
  5. Received: from beast.cs.hh.ab.com by crash.cts.com with smtp
  6.     (Smail3.1.28.1 #18) id m0pSefD-0000b3C; Fri, 4 Feb 94 20:30 PST
  7. Date: Fri, 4 Feb 1994 23:30:31 -0500 (EST)
  8. Message-Id: <940204233031.20410310@iccgcc.cs.hh.ab.com>
  9. From: THORNTONJ@iccgcc.cs.hh.ab.com
  10. To: amigae@bkhouse.cts.com
  11. Subject: Strings and Numbers and Things......Oh My!!
  12.  
  13. Hi It's me again,
  14.  
  15.   I know in the Ref docs it tells how to change a string representation
  16. of a number to a number, but can you change a string rep. of a hex number
  17. into a hex number. 
  18.  
  19.   Also I haven't been able to find any mention of how to raise a number
  20. to a power.
  21.  
  22.   The reason for the questions is that in the game I'm working on, I'm
  23. breaking the map down into a 16 x 16 grid with the lines to the grid
  24. representing where the vertical and horizontal walls would be.
  25.  
  26.   With this scheme, I can represent all of the information for the vertical
  27. and horizontal walls with two different sets of 17 numbers. The same scheme
  28. will be used for the location of doors as well.
  29.  
  30.   I could use decimal instead of hex but I'm trying to keep my eventual
  31. data files as small as possible. Also being able to raise 2 to the diff
  32. powers would cut down on the code some.
  33.  
  34.   I don't have a lot done yet but if anyone's interested i could send them
  35. what I have so you could kinda see what I'm trying to do and maybe offer
  36. some suggestions on how to do some things better.
  37.  
  38. later
  39.  
  40. Jessie
  41. thorntonj@beast.cs.hh.ab.com